package com.qf.ssm.mapper;

import com.qf.ssm.pojo.RoleMenu;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface RoleMenuMapper {


    void addRoleMenu(RoleMenu roleMenu);

    @Update("UPDATE role_menu SET role_id=#{role_id}WHERE menu_id=#{menu_id}")
    void updateRoleMenu(RoleMenu roleMenu);


    void deleteRoleMenuByIds(@Param("ids") List<Long> ids);

    @Select("SELECT * From role_menu")
    List<RoleMenu>findAllRoleMenu();
}
